Repository navigation
Reviewer: every press of Re-request review gets its own review - #345
Merged
Merged
Conversation
The gateway keyed a native re-request by the PR head (rerequest#<sha>), claimed for hours, so a second press on the same commit was dropped before the worker ran and the person saw no verdict. The key is now GitHub's delivery id plus the requested reviewer: a redelivery of the same event is still one job, a new press is a new ask.
nambok
force-pushed
the
fix/rerequest-dedup
branch
from
October 27, 2026 21:27
fbdaf9d to
7453070
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
When a person pressed GitHub's "Re-request review" a second time on the same commit within 6 hours, nothing happened. The gateway gave each re-request the job key
rerequest#<head sha>, and the worker holds that key for 6 hours, so the second press was dropped before the worker ran and the person never saw a verdict. Every explicit ask should get a visible verdict, so each press now has its own key.Changes
rerequest_keyinroutes/github_webhook.rs. The key is GitHub's id for the delivery (X-GitHub-Delivery) plus the id of the reviewer being requested.updated_atfor that request.routetodispatchand then tohandle_pull_request. It is already recorded on every delivery asexternal_id, and relayed events from hybrid installs carry their relay delivery id there too.Verification
two_presses_on_the_same_commit_are_two_asks: two presses on the same head get different keys, so both reach the worker.a_redelivery_of_the_same_event_is_the_same_job: a redelivery with the same delivery id gets the same key.without_a_delivery_id_each_request_still_has_its_own_key.cargo fmt --checkandcargo clippy --workspace --all-targets -D warningsare clean.cargo test --workspace: common 1226, gateway 596, worker 770, all passing, after rebasing on main with Reviewer: answer replies to its findings without a mention; look up bucket and key settings instead of asking #342 in.